#pragma once
#include "stdafx.h"
#include "Tools.h"

class CStateBar
{
public:
	CStateBar();
	~CStateBar();
	void Init(int posx, int posy, IplImage *img, IplImage *level[]);
	void DrawToBack(IplImage *Bg, int hp, int sp);
	void Change();
	void SetCheckPoint(int now);
private:
	int m_posx;
	int m_posy;
	IplImage *m_Hub;
	IplImage *m_HPBar, *m_SPBar;
	IplImage *m_srcHPBar, *m_srcSPBar;
	IplImage *m_CheckPointNum[LEVEL_IMAGE_COUNT];
	int m_NowCheckPoint;
	int m_Move;
};

